library;

/// @description: 黄金相关接口
/// @author tangzhentao
/// @created at 19:33 2024/12/31

class ApiGold {
  /// 提交黄金回收订单 POST
  ///
  /// body {
  ///
  /// method [String] 回收方式:online=线上,offline=线下
  ///
  /// type [String] 类型:1=定价后来料,2=来料后定价
  ///
  /// weight [String] 重量
  ///
  /// price [String] 单价
  ///
  /// shop_id [String] 预约门店
  ///
  /// arrive_time [String] 预约到店时间
  ///
  /// address_id [String] 取件地址
  ///
  /// pickup_time [String] 预约取件时间
  ///
  /// }
  static const recycleCreate = 'recycle/create';

  /// 门店列表 POST
  ///
  /// body {
  ///
  /// filter {
  ///
  /// keywords: 搜索关键词,
  ///
  /// city: 城市名
  ///
  /// lat: 城市名
  ///
  /// lng: 城市名
  ///
  /// }
  ///
  /// page [String] 页码
  ///
  /// }
  static const recycleStore = 'recycle/store';

  /// 黄金回收订单列表 POST
  ///
  /// body {
  ///
  /// filter { method: online=线上,offline=线下, status: 0=待取件,1=待收件,2=待核件,3=待确认,4=已完成 }
  ///
  /// page [String] 页码
  ///
  /// }
  static const recycleList = 'recycle/list';

  /// 确认交易 POST
  ///
  /// body {
  ///
  /// id [String] 回收订单ID
  ///
  /// }
  static const recycleConfirm = 'recycle/confirm';

  /// 回收订单详情 POST
  ///
  /// body {
  ///
  /// id [String] 回收订单ID
  ///
  /// }
  static const recycleDetail = 'recycle/detail';

  /// 自行寄快递 POST
  ///
  /// body {
  ///
  /// id [String] 回收订单ID
  ///
  /// express_nu [String] 快递单号
  ///
  /// express_com [String] 快递公司代号，自动识别传 auto
  ///
  /// }
  static const recycleSetExpress = 'recycle/setExpress';

  /// 取消黄金回收订单的原因 POST
  static const recycleGetRefundReason = 'recycle/getRefundReason';

  /// 取消黄金回收订单 POST
  ///
  /// body {
  ///
  /// id [String] 回收订单ID
  ///
  /// reason [String] 获取配置项接口获取
  ///
  /// }
  static const recycleCancel = 'recycle/cancel';

  /// 商品列表 POST
  ///
  /// body {
  ///
  /// page [String] 分页
  ///
  /// filter: {
  ///
  ///   keywords [String] 关键词搜索
  ///
  ///   }
  ///
  /// sort: {
  ///
  ///   sales: 销量排序，0=默认排序，1=从大到小，2=从小到大
  ///
  ///   price: 价格排序，0=默认排序，1=从大到小，2=从小到大
  ///
  ///   }
  ///
  /// }
  static const productList = 'product/list';

  /// 商品详情 POST
  ///
  /// body {
  ///
  /// id [String] 商品id
  ///
  /// }
  static const productDetail = 'product/detail';

  /// 黄金投资轮播图 POST
  ///
  static const investBanner = 'banner';

  /// 黄金投资商品列表 POST
  ///
  /// body {
  ///
  /// page [String] 分页
  ///
  /// filter: {
  ///
  ///   keywords [String] 关键词搜索
  ///
  ///   }
  ///
  /// sort: {
  ///
  ///   sales: 销量排序，0=默认排序，1=从大到小，2=从小到大
  ///
  ///   price: 价格排序，0=默认排序，1=从大到小，2=从小到大
  ///
  ///   }
  ///
  /// }
  static const goldList = 'gold/list';

  /// 黄金投资商品详情 POST
  ///
  /// body {
  ///
  /// id [String] 商品id
  ///
  /// }
  static const goldDetail = 'gold/detail';

  /// 积分商城分类 POST
  ///
  static const pointsCategory = 'points/category';

  /// 积分商品列表 POST
  ///
  /// body {
  ///
  /// page [String] 分页
  ///
  /// filter: {
  ///
  ///   category_id [String] 分类ID
  ///
  ///   keywords [String] 关键词搜索
  ///
  ///   }
  ///
  /// }
  static const pointsList = 'points/list';

  /// 积分商品详情 POST
  ///
  /// body {
  ///
  /// id [String] 商品id
  ///
  /// }
  static const pointsDetail = 'points/detail';

  /// 评论列表 POST
  ///
  /// body {
  ///
  /// page [int] 分页页数
  ///
  /// filter: {
  ///
  /// product_id [int] 商品id
  ///
  /// }
  ///
  /// }
  static const reviewsList = 'reviews/list';

  /// 发布评论 POST
  ///
  /// body {
  ///
  /// order_id [int] 订单id
  ///
  /// rating [int] 1-5数字
  ///
  /// comment [String] 评论文字
  ///
  /// is_private [int] 是否匿名：0=不匿名，1=匿名
  ///
  /// images [String] 地址用英文逗号拼接
  ///
  /// }
  static const reviewsAdd = 'reviews/add';
}
